<?php
include('inc/init.php');

$smarty->template_dir = 'templates';

$name = $_POST['name'];
$email = $_POST['email']; 
$subject = $_POST['subject']; 
$message = $_POST['message']; 

$sql = "insert into ats_contactus (name,email,subject,message,status) values('".$name."','".$email."','".$subject."','".$message."',0)";
$res = $db->prepare($sql);

$res->execute();

echo "Thank You. Your inquiry have been saved";
?>
